<?php
	foreach($ngos as $ngo)
	{
		$i = $ngo->Id;
?>
		<form method="post" action="../update">
			<input 	type="hidden" 
					name="id" 
					value="<?php echo $i; ?>" />
			<div>Id: <?php echo $i; ?></div>
			<div>Name: <input 	type="text" 
									name="name" 
									value="<?php echo $ngo->Name; ?>" /></div>
			<div>Type: <input 	type="text" 
                                name="type" 
                                value="<?php echo $ngo->Type; ?>" /></div>
            <div>Description: <input type="text" 
									 name="description" 
									 value="<?php echo $ngo->Description; ?>" /></div>
			<div>Website: <input type="text" 
								 name="website" 
								 value="<?php echo $ngo->Website; ?>" /></div>
            <div>Landline: <input type="text" 
								 name="landline" 
								 value="<?php echo $ngo->Landline; ?>" /></div>
            <div>Mobile: <input type="text" 
                                name="mobile" 
                                value="<?php echo $ngo->Mobile; ?>" /></div>
            <div>Email: <input  type="text" 
								name="email" 
								value="<?php echo $ngo->Email; ?>" /></div>
            <div>Fax: <input type="text" 
                             name="fax" 
                             value="<?php echo $ngo->Fax; ?>" /></div>
            <div>RegistrationNumber: <input type="text" 
                                             name="registrationNumber" 
                                             value="<?php echo $ngo->RegistrationNumber; ?>" /></div>
			<input type="submit" name="cancel" value="Cancel" />
			<input type="submit" name="save" value="Save" />
		</form>
<?php
	}
?>